﻿<Window x:Class="SSCAI.Client.StatisticsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="算法统计窗口" Height="600" Width="800">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="AliceBlue"  Offset="0"/>
            <GradientStop Color="#FF10DEE8" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>           
            <ColumnDefinition Width="200"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
            <Button Content="更新数据" Name="btnUpToDate" Click="btnUpToDate_Click_1" Padding="20,0"  Margin="5" />
        </StackPanel>
        <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Vertical">
            <DataGrid Name="gridData" Height="470"  AutoGenerateColumns="False" ItemsSource="{Binding LotterysProperty}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="序号" Binding="{Binding Id, Mode=OneWay}" Width="40" />
                    <DataGridTextColumn Header="开奖期号" Binding="{Binding Issue, Mode=OneWay}" Width="70" />
                    <DataGridTextColumn Header="中奖号码" Binding="{Binding WinningNumber, Mode=OneWay}" Width="60"/>
                    <DataGridTextColumn Header="四D" Binding="{Binding FourDNumber, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="大小" Binding="{Binding BigToSmall, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="小大" Binding="{Binding SmallToBig, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="和值" Binding="{Binding FourDSum, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="和尾" Binding="{Binding FourDSumTail, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="跨度" Binding="{Binding FourDSpan, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="01" Binding="{Binding Number01, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="位差" Binding="{Binding FourDDeviation, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="012" Binding="{Binding Number012, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="0123" Binding="{Binding Number0123, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="01234" Binding="{Binding Number01234, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="更新时间" Binding="{Binding ModifiedTime, Mode=OneWay}" Width="200"/>
                </DataGrid.Columns>
            </DataGrid>
            <ProgressBar Name="pbar"  Height="15" Value="0"/>
        </StackPanel>
    </Grid>
</Window>
